package com.platform.modules.prj.service;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.platform.modules.prj.entity.PrjWorkAreaEntity;
import com.platform.modules.sys.entity.SysUserEntity;


public interface PrjWorkAreaService extends IService<PrjWorkAreaEntity> {

	IPage<PrjWorkAreaEntity> queryPage(Map<String, Object> params);

	
	List<PrjWorkAreaEntity> queryList(Map<String, Object> params);
	
	
	boolean save(PrjWorkAreaEntity prjWorkAreaEntity, SysUserEntity sysUserEntity);


	/**
	 * 保存图纸并生成缩略图
	 * @param file
	 * @param dirId
	 * @param docId
	 * @throws IOException 
	 */
	void saveDrawing(MultipartFile file, String dirId, String docId) throws IOException;
	
	
	void saveDwgThumnail(InputStream is,String id);
	
 
}
